package com.learn.springboot.repository;

import com.learn.springboot.domain.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author dyz
 * @date 2020/6/13 18:00
 */
@Repository
public interface UserRepository extends CrudRepository<User, Long> {
    /**
     * 找到用户的名字
     *
     * @param username 用户名
     * @return {@link User}
     */
    User findUserByUsername(String username);
}
